<%@page import="com.mmy.domain.sys.TSysUser"%>
<%@page import="com.mmy.domain.visa.TVisaBase"%>
<%@page import="com.mmy.domain.constzone.TConstZone"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
 <%
 	TSysUser tSysUser = (TSysUser)session.getAttribute("tSysUser");
	
	TConstZone newTConstZone = (TConstZone)session.getAttribute("newTConstZone");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<script type="text/javascript" src="js/jsp/back/visa/visaBaseIndex.js"></script>
	<title>签证管理</title>
	</head>
	<body>
		<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
		<div id="menu-back">
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
						<div class="row">
							<div class="span-5 col">
								<h1>签证管理</h1>
							</div>	
							
						 </div >
					</div>
				</header>
				<section class="container">
					
					
					<!-- 修改签证基本信息 -->
					<div class="information" >
					<form action="bacsaveupdatevisabase" class="info-form" name="visaBaseForm" method="post" onSubmit="return visaBaseSubmit(this);"  >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>修改签证基本信息
						</h4>
					<div class="input-container">
					<table class="info-table">
						<tr>
								
								<th><label for="visaBaseName">签证名称</label><span class="mustWrite">*</span></th>
								<td colspan="5">
									 <input type="hidden" name="VisaID" value="${dbVisaBase.getVisaID()}" readonly="readonly"/>
								<input type="text" name="VisaName" id="visaBaseName" value="${dbVisaBase.getVisaName()}" required="required"/>
								</td>
								</tr>
								<tr>
									<th><label for="visaBaseZoneID">所属区域</label><span class="mustWrite">*</span></th>
					<td colspan="2">
					<select class="input-select-vlign " id="visaBaseZoneID" name="Continent" emptyOption="false"  onchange="changeSelect(this,'getLevel2','level1','Country')"  required>
				
					<c:forEach var="lstZoneContinent" items="${lstZoneContinent}">
						<option value="${lstZoneContinent.getZoneID()}" <c:if test="${strContinentID==lstZoneContinent.getZoneID()}"> selected="selected"</c:if>>${lstZoneContinent.getZoneName()}</option>
						</c:forEach>
						</select>
						<select class='input-select-vlign  Country' name="ZoneID" emptyOption="false"   required>
					<c:forEach var="lstZoneCountry" items="${lstZoneCountry}">
						<option value="${lstZoneCountry.getZoneID()}" <c:if test="${dbVisaBase.getZoneID()==lstZoneCountry.getZoneID()}"> selected="selected"</c:if>>${lstZoneCountry.getZoneName()}</option>
						</c:forEach>
						</select>
					</td>
						<th><label for="visaBaseType">签证类型</label><span class="mustWrite">*</span></th>
					<td colspan="2">
					<select class="input-select-vlign " id="visaBaseType" name="Type"  onblur="checkZoneIDandType(this.value)" required>
						<option value="0" <c:if test="${dbVisaBase.getType()==0}"> selected="selected"</c:if>>团签</option>
						<option value="1" <c:if test="${dbVisaBase.getType()==1}"> selected="selected"</c:if>>个签</option>
						</select> 	
					</td>
								
							</tr>
							<tr >
							<th><label for="visaBaseFloor">租赁底价</label><span class="mustWrite">*</span></th>
								<td colspan="2">
								<input type="number" name="Floor" id="visaBaseFloor" value="${dbVisaBase.getFloor()}" required="required"/>
								</td>
								
								<th><label for="visaBasePeer">租赁同业价</label><span class="mustWrite">*</span></th>
								<td colspan="2">
									
								<input type="number" name="Peer" value="${dbVisaBase.getPeer()}" id="visaBasePeer" required="required"/>	
								</td>
								
							</tr>
							<tr>
						<th><label for="visaBasePrice">对外报价</label><span class="mustWrite">*</span></th>
								<td colspan="2">
									<input type="number" name="Price" value="${dbVisaBase.getPrice()}" id="visaBasePrice" required="required"/>		 
								</td>
							<th><label for="visaBaseDay">办理周期</label><span class="mustWrite">*</span></th>
								<td colspan="2">
									<label>工作日</label><input type="text" name="Day" id="visaBaseDay"  value="${dbVisaBase.getDay()}"  required="required"/><label>天</label>
									
								</td>
								
							</tr>
						
							<tr>
							<th><label for="visaBaseMemo">备注</label></th>
								<td colspan="5">
									<textarea name="Memo" id="visaBaseMemo" >${dbVisaBase.getMemo()}</textarea>
								</td>
								
							</tr>
							
						</table>
			<center>
				<input type="submit" class="btn" value="保存" />
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
			</center> 
			</div>
			</form>
			</div>
			</section>
			</article>
			</main>
			<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<!-- /st-container -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Script Embed Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>

</body>
</html>